{% if en %}
    <div class="tab-pane fade" id="limits" role="tabpanel">
        {% for config, val in {
        "Max Container Count": ("docker_max_container_count", "The maximum number of countainers allowed on the server"),
        "Max Renewal Times": ("docker_max_renew_count", "The maximum times a user is allowed to renew a container"),
        "Docker Container Timeout": ("docker_timeout", "A container times out after [timeout] seconds."),
    }.items() %}
            {% set value = get_config('whale:' + val[0]) %}
            <div class="form-group">
                <label for="{{ val[0].replace('_', '-') }}">
                    {{ config }}
                    <small class="form-text text-muted">
                        {{ val[1] }}
                    </small>
                </label>
                <input type="text" class="form-control"
                       id="{{ val[0].replace('_', '-') }}" name="{{ 'whale:' + val[0] }}"
                       {% if value != None %}value="{{ value }}"{% endif %}>
            </div>
        {% endfor %}

        <div class="submit-row float-right">
            <button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">
                Submit
            </button>
        </div>
    </div>
{% else %}
    <div class="tab-pane fade" id="limits" role="tabpanel">
        {% for config, val in {
        "最大容器数目": ("docker_max_container_count", "服务器允许的最大容器数"),
        "最大延期次数": ("docker_max_renew_count", "允许用户续订容器的最大次数"),
        "容器超时时长": ("docker_timeout", "容器在 [timeout] 秒后超时。"),
    }.items() %}
            {% set value = get_config('whale:' + val[0]) %}
            <div class="form-group">
                <label for="{{ val[0].replace('_', '-') }}">
                    {{ config }}
                    <small class="form-text text-muted">
                        {{ val[1] }}
                    </small>
                </label>
                <input type="text" class="form-control"
                       id="{{ val[0].replace('_', '-') }}" name="{{ 'whale:' + val[0] }}"
                       {% if value != None %}value="{{ value }}"{% endif %}>
            </div>
        {% endfor %}

        <div class="submit-row float-right">
            <button type="submit" tabindex="0" class="btn btn-md btn-primary btn-outlined">
                确定
            </button>
        </div>
    </div>
{% endif %}
